# /bin/sh

cp pyesmysql.service.tpl pyesmysql/pyesmysql.service -f
sed -i -e "s%#PATH#%`pwd`%g" pyesmysql/pyesmysql.service

cp pyesmysql /usr/local/share/ -r
systemctl disable /usr/local/share/pyesmysql/pyesmysql.service
systemctl enable /usr/local/share/pyesmysql/pyesmysql.service
systemctl start pyesmysql
systemctl status pyesmysql
